# -*- coding: utf-8 -*-

import mod.server.extraServerApi as serverApi
import mod.client.extraClientApi as clientApi
from mod.common.mod import Mod

import gemstoneScripts.server.inlayGemstones
from gemstoneScripts.config.sys import *


@Mod.Binding(MOD_NAME, MOD_VERSION)
class Gemstone(object):
    def __init__(self):
        pass

    @Mod.InitServer()
    def gemstoneInitServer(self):
        serverApi.RegisterSystem(MOD_NAME, MOD_LISTENER + 'EnchantsSystem', 'gemstoneScripts.server.enchants.enchantsSystem.EnchantServerSystem')
        serverApi.RegisterSystem(MOD_NAME, MOD_LISTENER + 'GemstonePlatformUI', 'gemstoneScripts.server.ui.gemstonePlatform.Listener')
        serverApi.RegisterSystem(MOD_NAME, MOD_LISTENER + 'InlayGemstones', 'gemstoneScripts.server.inlayGemstones.Listener')
        serverApi.RegisterSystem(MOD_NAME, MOD_LISTENER + 'Fortune', 'gemstoneScripts.server.Fortune.Listener')
        pass

    @Mod.DestroyServer()
    def gemstoneDestroyServer(self):
        pass

    @Mod.InitClient()
    def gemstoneInitClient(self):
        clientApi.RegisterSystem(MOD_NAME, MOD_LISTENER + 'GemstonePlatformUI', 'gemstoneScripts.client.ui.gemstonePlatform.Listener')
        clientApi.RegisterSystem(MOD_NAME, MOD_LISTENER + 'EnchantsSystem', 'gemstoneScripts.client.ui.iceArmor.Listener')
        pass

    @Mod.DestroyClient()
    def gemstoneDestroyClient(self):
        pass
